using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName ="ItemDataList_SO",menuName ="Inventory/ItemDataList_SO")]
public class ItemDataList_SO : ScriptableObject
{
    public List<ItemDetails> typeList;

    public ItemDetails GetItemDetails(EItemType itemName)
    {
        Debug.Log(1);
        return typeList.Find(i => i.itemName == itemName);
    }
}

[System.Serializable]
public class ItemDetails
{
    public EItemType itemName;

    public Sprite itemSprite;

    public string itemTips;
}
